package com.suyeer.common;

/**
 * Created by jun on 2017/8/2.
 */
public enum HttpStatusEnum {
    OK(200, "请求成功!"),
    UNAUTHORIZED(401, "需登录的请求!"),
    REPEAT_LOGIN(401, "您的账号已在异地登录!"),
    FORBIDDEN(403, "无权限访问!"),
    NOT_FOUND(404, "网页丢失了!"),
    SERVER_ERROR(500, "服务器内部错误!");

    private final Integer code;
    private final String des;

    HttpStatusEnum(Integer code, String des) {
        this.code = code;
        this.des = des;
    }

    public Integer getCode() {
        return code;
    }

    public String getDes() {
        return des;
    }

}
